/*
 * JNITest.c
 *
 *  Created on: 2016年3月21日
 *      Author: mac
 */

#include "say_test_JNITest.h"
int a = 0;
JNIEXPORT jint JNICALL Java_say_test_JNITest_get
  (JNIEnv *env, jclass jc){
	return a;
}

/*
 * Class:     say_test_JNITest
 * Method:    set
 * Signature: (I)V
 */
JNIEXPORT void JNICALL Java_say_test_JNITest_set
  (JNIEnv *env, jclass jc, jint j)
{
	a = j;
	}
/*
 * Class:     say_test_JNITest
 * Method:    add
 * Signature: (II)I
 */
JNIEXPORT jint JNICALL Java_say_test_JNITest_add
  (JNIEnv *env, jclass jc, jint i, jint j){
	return i+j;
}
